```typescript index.ts
// Allows to generate token to preview the advert which is not yet published
const generateTokenResponse = cornerstoneOnDemand.advertisementsApi.generateToken()
```